<?php
defined('ROOTPATH') OR exit('Forbidden');

class mod_main {

    public static function main() {
        echo 'Model载入成功！<br>';
    }

    public static function getDbTest() {
        db::query("SELECT * FROM test");
        db::table('test');
        db::where(array('tid <=' => 2));
        db::where();

        db::insert(
            array(
                'tid' => 3,
                'info' => 4,
                'name' => 'xxx',
                'what' => 'dadfadfdsafasf'
            )
        );

        return db::getall();
    }
}
